package org.example.commonapi.util;

public class InformationUtil {


    /**
     * todo 脱敏操作
     * @param info 脱敏信息
     * @return
     */
    public static String desensitization(String info){
        char[] str=info.toCharArray();
        int length=str.length;
        int desensitizationLength=length/2;
        for(int i=desensitizationLength/2;i<desensitizationLength;i++){
            str[i]='*';
        }
        return String.valueOf(str);
    }

}
